public class LifeCycle {
    // 静态属性
    private static String staticField = getStaticField();

    // 静态⽅法块
    static {
        System.out.println("2."+ staticField);
        System.out.println("3.静态⽅法块初始化");
    }

    // 普通属性
    private String field = getField();

    // 普通⽅法块
    {
        System.out.println("5." + field);
    }

    // 构造函数
    public LifeCycle() {
        System.out.println("6.构造函数初始化");
    }

    public static String getStaticField() {
        String statiFiled = "Static Field Initial";
        System.out.println("1.Static Field Initial");
        return statiFiled;
    }

    public static String getField() {
        String filed = "Field Initial";
        System.out.println("4.Field Initial");
        return filed;
    }

    // 主函数
    public static void main(String[] argc) {
        new LifeCycle();
    }
}